package org.emet.dao.ash;

import java.util.List;

import org.emet.entity.ash.AshItem;
import org.emet.entity.ash.Frame;
import org.emet.jee.core.dao.arch.ArchDataSourceBaseDao;
import org.springframework.stereotype.Repository;

@Repository
public class FrameDao extends ArchDataSourceBaseDao<Frame, Long> {

	public List<AshItem> getAshItemRow(long frameId, int rowNo) {
		String hql = "from AshItem where frame.id=? and row = ? order by col";
		return find(hql, frameId, rowNo);
	}
}
